import instance from '@/utils/request';

// 获取分类数据
export function getchannelData(data: {
    id: string
}) {
    return instance({
        url: '/goods/category',
        method: 'get',
        params: data
    })
}

// 获取分类页的商品列表
export function getgoodslist(data: {
    categoryId: string,
    page: number,
    size: number
}) {
    return instance({
        method: 'get',
        url: '/goods/list',
        params: data
    })
}